import { AxiosAccount } from '../utils/http/request';

//会员管理
enum memberApi {
  list = '/member/member/list',
  add = '/member/member/add',
  detail = '/member/member/detail',
  edit = '/member/member/edit',
  delete = '/member/member/delete',
}

//会员列表
export const memberList = (data: any) =>
  AxiosAccount.request({
    url: memberApi.list,
    method: 'post',
    data,
  });
//会员添加
export const memberAdd = (data: any) =>
  AxiosAccount.request({
    url: memberApi.add,
    method: 'post',
    data,
  });
//会员详情
export const memberDetail = (data: any) =>
  AxiosAccount.request({
    url: memberApi.detail,
    method: 'post',
    data,
  });
//会员修改
export const memberEdit = (data: any) =>
  AxiosAccount.request({
    url: memberApi.edit,
    method: 'post',
    data,
  });
//会员删除
export const memberDelete = (data: any) =>
  AxiosAccount.request({
    url: memberApi.delete,
    method: 'post',
    data,
  });
